home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
programming
/
ace_basic
/
ace24.lha
/
prgs
/
ShellUtils
/
base.b
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-09-11
|
312 b
|
21 lines
deflng x
SUB usage
print "usage: base <decimal number>"
stop
END SUB
if argcount<>1 then
usage
else
if arg$(1)="?" then
usage
else
x=val(arg$(1))
print " Decimal:";x
print "Hexadecimal: ";hex$(x)
print " Octal: ";oct$(x)
print " Binary: ";bin$(x)
end if
end if